﻿from django.shortcuts import render_to_response

from blog.models import *


def index(request):
    archives = Archive.all().order('-pub_date')
    host = request.get_host()
    return render_to_response('sitemap.xml',dict(archives=archives,
        host = host))


